<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <ui:composition template="templatecustomer.xhtml">
        <ui:define name="pagename">
            Car Detail
        </ui:define>
        <ui:define name="content">
            <br/>
            <h:form>
                <table>
                    <tr>
                        <td><img src="../admin/#{carBean.carDetails.carImg}" alt="images" width="150px" height="150px"/></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td><h3>Car Name : </h3></td>
                        <td><b>#{carBean.carDetails.carName}</b></td>
                    </tr>
                    <tr>
                        <td><h3>Capacity : </h3></td>
                        <td><b>#{carBean.carDetails.capacity}</b></td>
                    </tr>
                    <tr>
                        <td><h3>Description :</h3></td>
                        <td><b>#{carBean.carDetails.description}</b></td>
                    </tr>
                    <tr>
                        <td><h3>Price : </h3></td>
                        <td><b>#{carBean.carDetails.price}</b></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><h:commandButton value="Order Now" action="#{carBean.actionOrderCar(carBean.carDetails.carID)}"></h:commandButton></td>
                    </tr>
                </table>

            </h:form>
        </ui:define>
    </ui:composition>
</html>

